﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using bdxyit.com.RecruitmentAppSys.ViewModels;

namespace bdxyit.com.RecruitmentAppSys.Controllers
{
    public class OperatMessageController : Controller
    {
        //
        // GET: /OperatMessage/

        public ActionResult Index(string nextOperate , string mess,string id)
        {
            var opMess = new OperatMessageViewModels();
            opMess.Message = mess;
            opMess.NextOperate = nextOperate.Substring(nextOperate.IndexOf('=')+1);
            opMess.returnOperate = nextOperate.Substring(0, nextOperate.IndexOf('='));
            opMess.Id = id;
            return View(opMess);
        }

        public ActionResult Details(string nextOperate, string mess, string id)
        {
            var opMess = new OperatMessageViewModels();
            opMess.Message = mess;
            opMess.NextOperate = nextOperate;
            opMess.Id = id;
            return View(opMess);
        }
    }
}
